import actions from '../actions/config'
import  { UPDATE_IS_APP_MODE, UPDATE_SHOW_HOME_BUTTON } from '../mutation-types'

const state = {
  isAppMode: false,
  isHomeButtonShow: true
}

const mutations = {
  [UPDATE_IS_APP_MODE] (state, isShow) {
    state.isAppMode = isShow
  },
  [UPDATE_SHOW_HOME_BUTTON] (state, isShow) {
    state.isHomeButtonShow = isShow
  }
}

export default {
  state,
  mutations,
  actions
}
